import _ from "lodash"
import clickoutside from "../tools/clickoutside"

const directives = {
  clickoutside
} as any

export default {
  install(Vue: any) {
    _.keys(directives).forEach(name => {
      Vue.directive(name, directives[name]);
    })
  }
}